package com.dj.mingkong.admin.biz.service.system.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.mingkong.admin.biz.controller.system.vo.request.UserFansQueryVo;
import com.dj.mingkong.admin.biz.controller.system.vo.response.UserFansVo;
import com.dj.mingkong.admin.biz.repository.database.system.UserFansRepository;
import com.dj.mingkong.admin.biz.service.system.UserFansService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


/**
 * 用户粉丝服务实现
 *
 * @author zenglonghui
 * @date: 2022/12/15 11:06
 */
@Service("userFansService")
public class UserFansServiceImpl implements UserFansService {
    @Resource
    private UserFansRepository userFansRepository;

    @Override
    public Page<UserFansVo> pageByVo(UserFansQueryVo queryVo) {
        return userFansRepository.getMapper().listPage(Page.of(queryVo.getPage(), queryVo.getPageSize()), queryVo);
    }
}
